package demo6;

public class StackMain3 {
    public static void main(String[] args){
        int []val1={1,2,3,4};
        int[]val2={4,3,2,1};
        StackPush stack1=new StackPush();
        boolean a=stack1.Isrule(val1,val2);
        System.out.println("val2数组是否是val1的出栈序列之一： "+a);
    }
}
